#ifndef COMBOBOX_H
#define COMBOBOX_H

#include <vector>
#include "ABControl.h"

class ComboBox : public ABControl
{
public:
	ComboBox();
	virtual ~ComboBox();

	bool Setup(HWND a_hWnd, HINSTANCE a_hInst, int a_xPos, int a_yPos, int a_width, int a_height, const char* a_entries[], int a_numItems);
	char* GetSelection() { ComboBox_GetText(m_hWnd, m_pBuffer, 512); return m_pBuffer; }
	int GetSelectionInt() { return ComboBox_GetCurSel(m_hWnd); }
	bool IsSelected(const char* a_pSelection);
	void SetSelection(int a_index);

private:
	HFONT m_hf;
	char* m_pBuffer;
};

#endif //COMBOBOX_H